package io.renren.modules.generator.controller;

import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
import io.renren.modules.generator.service.TbMovieTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @ClassName : MovieTypeController
 * @Description :
 * @Author : Xiaotianyu
 * @Date: 2021-10-13 16:33
 */
@RestController
@RequestMapping("app/movie/type")
@Api("客户端-电影类型")
public class MovieTypeController {

    @Autowired
    private TbMovieTypeService tbMovieTypeService;

    /**
     * 列表
     */
    @GetMapping("/list")
    @ApiOperation("获取所有的电影类型")
    public R list(){
        return R.ok().put("data",tbMovieTypeService.getAllList());
    }
}
